package com.coocaa.ops.common.core.base.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author tangminghong
 * @date 2020-06-10 17:15
 */
@Getter
@Setter
public class BaseOriginTableEntity extends BaseEntity {
    /**
     * 是否定时 0否 1是
     */
    @TableField(exist = false)
    private Integer isTiming;
    /**
     * 定时上线时间
     */
    @TableField(exist = false)
    private Date releaseTime;
    /**
     * 0-下架，2-草稿, 3-待审核，4-审核通过，5-审核不通过
     */
    private Integer status;
    /**
     * 当前版本，从1开始
     */
    private Integer currentVersion;
    /**
     * 副本版本，从1开始 副本允许null值更新
     */
    @TableField(strategy = FieldStrategy.IGNORED)
    private Integer duplicateVersion;
    /**
     * 审核者
     */
    @TableField(exist = false)
    private String auditor;
}
